export const routes = [
    {
        path: '/login',
        component: () => import('@/views/login/index.vue'),
        name: 'login',
        meta: {
            title: "登录 ",
            hidden: false,
            icon: 'User',

        }
    },
    // 布局组件
    {
        path: '/',
        component: () => import('@/layout/index.vue'),
        name: 'layout',
        meta: {
            title: "layout",
            hidden: true,
            icon: 'User',
        },
        children: [
            {
                path: '/home',
                component: () => import('@/views/home/index.vue'),
                name: 'home',
                meta: {
                    title: "首页",
                    hidden: true,
                    icon: 'Promotion',
                }
            }
        ]
    },
    // 组织管理
    {
        path: '/organization',
        component: () => import('@/layout/index.vue'),
        name: 'organization',
        meta: {
            title: "组织管理",
            hidden: true,
            icon: 'User',
        },
        children: [
            {
                path: '/organization/dept',
                component: () => import('@/views/organization/dept/index.vue'),
                name: 'dept',
                meta: {
                    title: "部门管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/organization/medical_dept',
                component: () => import('@/views/organization/medicalDept/index.vue'),
                name: 'medical_dept',
                meta: {
                    title: "医疗科室管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/organization/medical_dept_sub',
                component: () => import('@/views/organization/medicalDeptSub/index.vue'),
                name: 'medical_dept_sub',
                meta: {
                    title: "医疗诊室管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/organization/role',
                component: () => import('@/views/organization/role/index.vue'),
                name: 'role',
                meta: {
                    title: "角色管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/organization/user',
                component: () => import('@/views/organization/user/index.vue'),
                name: 'user',
                meta: {
                    title: "用户管理",
                    hidden: true,
                    icon: 'User',
                }
            },
        ]
    },

    // 医护管理
    {
        path: '/care',
        component: () => import('@/layout/index.vue'),
        name: 'care',
        meta: {
            title: "医护管理",
            hidden: true,
            icon: 'User',
        },
        children: [
            {
                path: '/care/doctor',
                component: () => import('@/views/care/doctor/index.vue'),
                name: 'doctor',
                meta: {
                    title: "医生管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/care/nurse',
                component: () => import('@/views/care/nurse/index.vue'),
                name: 'nurse',
                meta: {
                    title: "护士管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/care/caregivers',
                component: () => import('@/views/care/caregivers/index.vue'),
                name: 'caregivers',
                meta: {
                    title: "护工管理",
                    hidden: true,
                    icon: 'User',
                }
            },
            {
                path: '/care/fees',
                component: () => import('@/views/care/fees/index.vue'),
                name: 'fees',
                meta: {
                    title: "诊费设置",
                    hidden: true,
                    icon: 'User',
                }
            },
        ]
    },


    // 出诊管理
    {
        path: '/visit',
        component: () => import('@/layout/index.vue'),
        name: 'visit',
        meta: {
            title: "出诊管理",
            hidden: true,
            icon: 'User',
        },
        children: [
            {
                path: '/visit/days',
                component: () => import('@/views/visit/days/index.vue'),
                name: 'days',
                meta: {
                    title: "出诊日程表",
                    hidden: true,
                    icon: 'User',
                }
            },
            //   :  代表是参数的一部分
            {
                path: '/visit/doctorfees/:deptName/:deptSubId/:date',
                component: () => import('@/views/visit/doctorfees/index.vue'),
                name: 'doctorfees',
                meta: {
                    title: "医生出诊表",
                    hidden: true,
                    icon: 'User',
                }
            },

        ]
    },

    // 系统设置组件
    {
        path: '/sys',
        component: () => import('@/layout/index.vue'),
        name: 'sys',
        meta: {
            title: "系统设置",
            hidden: true,
            icon:'User'
        },

    },

    {
        path: '/:pathMatch(.*)*',
        component: () => import('@/views/404/index.vue'),
        name: '404',
        meta: {
            title: "404",
            hidden: false,
            icon: 'User',
        }
    },
];